.projectItem {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-5);
  width: 100%;
  padding: var(--spacing-5) var(--spacing-4) var(--spacing-4);
  text-decoration: none;
  background-color: var(--pane-background);
  border: var(--border-width-base) solid var(--global-border);
  border-radius: var(--border-radius-md);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.projectItem:hover {
  border-color: var(--pane-border-hover);
  transform: translateY(-2px);
}

.projectHeader {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-3);
  align-items: center;
  width: 100%;
  min-width: 0;
}

.projectIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  overflow: hidden;
  color: var(--overlay-20);
  background-color: var(--global-muted-background);
  border-radius: var(--border-radius-lg);
}

.projectIconPlaceholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.projectIconPlaceholder svg {
  width: 100%;
  height: 100%;
}

.projectName {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--font-size-5);
  font-weight: 600;
  line-height: normal;
  color: var(--global-foreground);
  white-space: nowrap;
}

.projectInfo {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
  min-width: 0;
}

.repositoryBadge {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-1);
  align-items: center;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  padding: var(--spacing-1) var(--spacing-2) var(--spacing-1)
    var(--spacing-1half);
  background-color: var(--overlay-5);
  border-radius: var(--border-radius-full);
}

.repositoryIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: var(--overlay-50);
}

.repositoryName {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--font-size-3);
  color: var(--global-foreground);
  white-space: nowrap;
}

.commitInfo {
  min-width: 0;
  font-size: var(--font-size-2);
  color: var(--overlay-50);
}

.commitInfoText {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
